package com.hyh.shiyanshiguanli.controller;

import com.hyh.shiyanshiguanli.domain.dto.PageDTO;
import com.hyh.shiyanshiguanli.domain.dto.PublicInformationDTO;
import com.hyh.shiyanshiguanli.domain.result.PageResult;
import com.hyh.shiyanshiguanli.domain.result.Result;
import com.hyh.shiyanshiguanli.service.OutStorageService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hyh
 * @version 1.0
 */
@RestController
@Slf4j
@RequestMapping("/outStorage")
public class outStorageController {

    @Autowired
    OutStorageService outStorageService;

    @GetMapping("/page")
    public Result<PageResult> page( PageDTO pageDTO){
        log.info("出库信息分页查询{}",pageDTO.getMessage());
        PageResult result = outStorageService.page(pageDTO);
        return Result.success(result);
    }

}
